""" 这是一个neter.py模块，该模块提供了一个递归遍历list列表的方法，
无论嵌套多少层的列表都能被遍历出来 """

def printList(listDatas, indent=False, level=0):
    """需要传入一个列表来运行该函数"""
    for listData in listDatas:
        if isinstance(listData, list):
            printList(listData, indent, level+1)
        else:
            if indent:
                for tab_stop in range(level):
                    print("\t", end='')
            print(listData)


mins = [1, 2, 3]
secs = [m * 60 for m in mins]

print(secs)


lower = ['I', "don't", 'like', 'spam']
upers = [l.upper() for l in lower]
print(upers)
